package com.beikai.demo01.thread;

import com.beikai.demo01.model.MyDemoModel;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.concurrent.ConcurrentHashMap;

/**
 * Created with IntelliJ IDEA.
 *
 * @author : hanbeikai
 * Date: 2021/6/6 10:18 上午
 * Description: No Description
 */
public class MyThreadDemo {

    private static final MyDemoModel MY_DEMO_MODEL = new MyDemoModel();



    public static void main(String[] args) {


        // ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(5, 8, 0, TimeUnit.SECONDS, new LinkedBlockingQueue<>());

        MY_DEMO_MODEL.setName("hangman");

        StringBuilder stringBuilder = new StringBuilder();
        stringBuilder.append("zhansan");
        stringBuilder.toString();

        StringBuffer stringBuffer = new StringBuffer();
        stringBuffer.append("zhangsan");
        stringBuffer.toString();

        List<String> list = new ArrayList<>();
        list.add("zhangsan");
        list.add(1,"zhagnsan");
        list.get(1);
        list.size();
        list.remove("zhagnsan");

        HashMap<String,String> hashMap = new HashMap<>();
        hashMap.put("zhangsan","zhangsan");
        hashMap.get("zhangsan");

        ConcurrentHashMap<String,String> hashMap1 = new ConcurrentHashMap<>();
        hashMap1.put("zhangsan","zhangsan");




    }
}
